﻿using System;
using System.Text;
using System.Collections.Generic;
using Dapper_Core.Table;
using Dapper_Core.DAL.Interface;

namespace Dapper_Core.BLL.Interface
{
    public interface ISys_JobBusiness: IBaseRepository<Sys_Job>
    {
        /// <summary>
        /// 获取定时任务分页信息
        /// </summary>
        /// <param name="pageIndex">页面索引（从0开始）</param>
        /// <param name="rowsPerPage">每页数据行数</param>
        /// <param name="search">模糊查询条件</param>
        /// <param name="orderby">排序条件</param>
        /// <returns></returns>
        (List<Sys_Job> roles, int count) GetPageList(int pageIndex, int rowsPerPage, string search, string orderby);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="ids"></param>
        /// <param name="deleter"></param>
        /// <returns></returns>
        bool Delete(string ids, string deleter);
    }
}
